import request from '@/utils/request'

// 查询岗位列表
export function listPost(query) {
  return request({
    url: '/system/post/list',
    method: 'post',
    params: query
  })
}

// 查询岗位options
export function getPostOption() {
  return request({
    url: '/system/post/getOption' ,
    method: 'get'
  })
}

// 新增岗位
export function savePost(data) {
  return request({
    url: '/system/post/savePost',
    method: 'post',
    data: data
  })
}

// 删除岗位
export function delPost(query) {
  return request({
    url: '/system/post/delPost',
    method: 'post',
    params: query
  })
}

// 下移
export function downPost(query) {
  return request({
    url: '/system/post/downPost',
    method: 'post',
    params: query
  })
}

// 上移
export function upPost(query) {
  return request({
    url: '/system/post/upPost',
    method: 'post',
    params: query
  })
}